<?php
/**
 * Created by PhpStorm.
 * User: perevozkin
 * Date: 17.03.14
 * Time: 10:32
 */

class block_book extends block_base {
    public  function init ( )  {
        $this -> title  = get_string ( 'book' ,  'block_book' ) ;
    }
    public function get_content() {
        if ($this->content !== null) {
            return $this->content;
        }

        $this->content         =  new stdClass;
        $this->content->text   = 'The content of our Book block!';
        $this->content->footer = 'Footer here...';

        if (! empty($this->config->text)) {
            $this->content->text = $this->config->text;
        }

        return $this->content;
    }
}